package com.kun.annotation;


import org.junit.Test;

//内置注解
public class BuildInAnnotation {

    @Override
    public String toString() {
        return "Hello World";
    }

    @Deprecated
    public void deprecatedMethod() {
        System.out.println("This method is deprecated");
    }

    @Test
    public void test() {
        deprecatedMethod();
    }

    @SuppressWarnings("deprecation")
    public void suppressWarning() {
        deprecatedMethod();
    }


}
